package com.ztjava.common.controller;


import com.jfinal.aop.Duang;
import com.jfinal.plugin.activerecord.Page;
import com.ztjava.common.model.record.RecordInfo;
import com.ztjava.common.service.RecordService;
import com.ztjava.core.Constant;
import com.ztjava.core.annotation.ControllerClass;
import com.ztjava.core.base.BaseController;
import com.ztjava.core.client.PortalClient;
import com.ztjava.ext.auth.annotation.UserController;
import com.ztjava.ext.auth.annotation.UserMethod;
@ControllerClass(path="/common/record",client=PortalClient.class)
@UserController(portal=Constant.P_PORTAL)
public class RecordPortalController extends BaseController{
	private static RecordService recordService = Duang.duang(RecordService.class);
	@UserMethod
	public void infoList(){
		if(getPara("is_ajax","F").equals("F")){
			keepPara();
			render("infoList.html");
			return;
		}
		renderPageJson(new Page<RecordInfo>( recordService.getInfoList(getPara("model"), getParaToInt("object_id")),1, 100, 0,0) );
	}
}
